package com.lixiaohan.lushudaohou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

@Data
@AllArgsConstructor//只加有参构造
@NoArgsConstructor//补上无参构造
@Entity
public class RoamSpaceComment {
    @Id
    private Integer spaceCommnetId;//评论编号(N)
    private Timestamp spaceCommentTime;//评论时间(N)
    private String spaceCommentContent;//评论内容(N)
    private Integer spaceCommentGood;//点赞数(N)
    private Integer spaceId;//个人空间信息编号(N)
    private Integer userId;//评论用户编号(N)

}
